import request from '@/utils/request'

// 查询见习记录列表
export function listExamine(query) {
  return request({
    url: '/person/examine/list',
    method: 'get',
    params: query
  })
}

// 查询见习记录列表下拉框
export function listForSelect(query) {
  return request({
    url: '/person/person/listForSelect',
    method: 'get',
    params: query
  })
}

// 查询见习记录详细
export function getExamine(id) {
  return request({
    url: '/person/examine/' + id,
    method: 'get'
  })
}

// 新增见习记录
export function addExamine(data) {
  return request({
    url: '/person/examine',
    method: 'post',
    data: data
  })
}

// 修改见习记录
export function updateExamine(data) {
  return request({
    url: '/person/examine',
    method: 'put',
    data: data
  })
}

// 删除见习记录
export function delExamine(id) {
  return request({
    url: '/person/examine/' + id,
    method: 'delete'
  })
}

// 导出见习记录
export function exportExamine(query) {
  return request({
    url: '/person/examine/export',
    method: 'get',
    params: query
  })
}
